<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>用户管理</title>
    <meta name="decorator" content="default"/>
</head>
<body>
<ul class="nav nav-tabs">
    <shiro:hasPermission name="report:config:view">
        <li class="active"><a href="${ctx}/report/config/">配置列表</a></li>
    </shiro:hasPermission>
    <shiro:hasPermission name="cms:site:edit">
        <li><a href="${ctx}/report/config/form">新增报表</a></li>
    </shiro:hasPermission>
</ul>

<form:form id="searchForm" modelAttribute="tfEcReportConfigOut" action="${ctx}/report/configOut" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <input type="hidden" name="reportId" value="${reportId }"/>

    <label>参数名称：</label> <form:input path="itemName" htmlEscape="false" maxlength="50" class="input-small"/>&nbsp;
    <label>参数编码：</label> <form:input path="itemCode" htmlEscape="false" maxlength="50" class="input-small"/>&nbsp;

    <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
    <input type="reset" value="清空" class="btn-gray-outline mgl-10">
</form:form>

<sys:message content="${message}"/>

<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <tbody>
    <thead>
        <tr class="erow">
            <td>表头名称</td>
            <td>表头类型</td>
            <td>合并个数</td>
            <td>参数编码</td>
            <td>排序</td>
            <%--<td>细节字段</td>--%>
            <%--<td>备注</td>--%>
            <td>创建人</td>
            <td class="al">操作</td>
        </tr>
    </thead>
    <tbody>

    <c:forEach items="${page.list}" var="configOut">
        <tr class="erow">
            <td>${configOut.itemName}</td>
            <td>
                <c:if test="${configOut.spanType==0}">无合并</c:if>
                <c:if test="${configOut.spanType==1}">行合并</c:if>
                <c:if test="${configOut.spanType==2}">列合并</c:if>
            </td>
            <td>${configOut.spanValue}</td>
            <td>${configOut.itemCode}</td>
            <td>${configOut.sort}</td>
            <td>${configOut.updateStaffId}</td>
            <td>
                <div class="manage1 al">
                    <shiro:hasPermission name="report:configOut:edit">
                        <a href="${ctx}/report/configOut/form?configOutId=${configOut.outResultId }&reportId=${reportId}"
                           class="font-blue mgr-10">修改</a>
                        <a href="${ctx}/report/configOut/delete?configOutId=${configOut.outResultId}&reportId=${reportId}"
                           class="font-blue" onclick="return confirmx('确认删除吗？',this.href)">删除</a>
                    </shiro:hasPermission>
                </div>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>